from rest_framework.viewsets import ModelViewSet
from goods.models import Brand
from meiduo_admin.serializers.brand_serializers import BrandSerializer
from meiduo_admin.utils import MyPagination


class BrandView(ModelViewSet):
    """ 品牌表 增删改查 """

    queryset = Brand.objects.all().order_by("id")
    serializer_class = BrandSerializer
    pagination_class = MyPagination
